import { httprequests } from '../httpReq'

export const getskuDetail = (data) => {
    return httprequests('pms-sku-info/skudetail', 'POST', data)
}

//所有sku集合
export const getSpuInfo = (data) => {
    return httprequests('pms-sku-info/SkuInfo', 'POST', data)
}

export const getElasticList = (data) => {
    return httprequests('elasticQuery/list', 'GET', {
            keyWord:data.keyWord,
            catelogId:data.catelogId,
            sort:data.sort,
            hasStock:data.hasStock,
            // skuPrice:data.skuPrice, 报错暂时屏蔽
            brandIds:data.brandIds,
            attrsd:data.attrs,
            pageNum:data.pageNum
    })
}